package com.example.emergencyattempt01.testResource;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class Person_info_test_resource {
    public String generateStringFromServer()
    {
     String toClient=null;
        JSONArray jsonArray=new JSONArray();
        try
        { for(int i=0;i<5;i++)
        {
            JSONObject object=new JSONObject();
            object.put("userName","学生"+i);
            object.put("uid",i);
            object.put("institute","计院");
            object.put("userType","学生");
            object.put("ownBooks",i);
            object.put("identity",200+i+"");
            jsonArray.put(object);
        }
        toClient=String.valueOf(jsonArray);
        }catch (JSONException e){e.printStackTrace();}
     return toClient;
    }
}
